//
//  AppDelegate.swift
//  我的微博
//
//  Created by 刘静 on 15/10/17.
//  Copyright © 2015年 liujing.cn. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
     
        print(UserAccount.loadAccount())
        
        setupAppearance()
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = MainViewController()
        window?.makeKeyAndVisible()
        
        return true
    }
        
    ///  设置外观
    private func setupAppearance(){

        // 一经设置，全局有效，应该尽早设置
    UINavigationBar.appearance().tintColor = UIColor.orangeColor()
    UITabBar.appearance().tintColor = UIColor.orangeColor()

    
    }

}

